package pers.lmd.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName user
 */

@TableName(value ="user")
@Data
@Schema(description = "用户实体类对象")
public class User implements Serializable {
    /**
     * 学号/工号
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 身份
     */
    @TableField(value = "role")
    private Integer role;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}